<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>移动端</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no, viewport-fit=cover">
	<style type="text/css">
	@media (-webkit-min-device-pixel-ratio: 1) {
		body{ font-size: 12px; }
	}
	@media (min-resolution: 1dppx) {
		body{ color: #333; }
	}
	@media (-webkit-min-device-pixel-ratio: 2) {
		body{ font-size: 14px; }
	}
	@media (min-resolution: 2dppx) {
		body{ color: #666; }
	}
	@media (-webkit-min-device-pixel-ratio: 3) {
		body{ font-size: 16px; }
	}
	@media (min-resolution: 3dppx) {
		body{ color: #999; }
	}
	</style>
</head>
<body>
<script>
console.log(window.devicePixelRatio)
</script>
</body>
</html>